CC = g++
CFLAGS += -Wall -O3
LDFLAGS += -llapack
SOURCES = integrate.cpp Integration.cpp Dynamics.cpp FileValues.cpp BandedSystem.cpp
OBJECTS = $(SOURCES:.cpp=.o)
MAIN = integrate

all: $(SOURCES) $(MAIN)

$(MAIN): $(OBJECTS)
	$(CC) $(LDFLAGS) $(CFLAGS) $(OBJECTS) -o $@

%.o: %.cpp
	$(CC) -c $(CFLAGS) $< -o $@

.PHONY: clean
clean:
	rm -f $(OBJECTS) $(MAIN)
